package com.his.back.dao;

import com.his.back.pojo.ExPatientDrug;
import com.his.back.pojo.RelatedInvoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Mapper
@Component("ExPatientDrugMapper")
public interface ExPatientDrugMapper {
    List<ExPatientDrug> findExPatiDrug(@Param("patientId") String patientId, @Param("stateId") Integer stateId);

    int updateByPrimaryKeySelective(ExPatientDrug EPD);

    List<RelatedInvoice> findRelatedInvoice(String patientId);

    List<ExPatientDrug> findDrugDetail(String invoiceId);

    List<ExPatientDrug> findDrugCost(@Param("patientId") String patientId,
                                     @Param("startTime") Date startTime, @Param("endTime")Date endTime);
}
